package org.example.lys.utils;

import java.util.UUID;

/**
 * @author ; lidongdong
 * @Description uuid 生成器
 * @Date 2019-09-20
 */
public class UUidUtils {


    public static String uuid() {
        return UUID.randomUUID().toString().replace("-", "").toUpperCase();
    }

    /**
     * uuid 倍数  位数 32 * times
     *
     * @param times
     * @return
     */
    public static String uuidByTimes(int times) {

        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < times; i++) {
            sb.append(uuid());
        }
        return sb.toString();
    }


}
